package api

import (
	"github.com/gin-gonic/gin"
	"week1/api/handlers"
)

func LoadApiRoutes(r *gin.Engine) {
	r.POST("/addArticle", handlers.AddArticle)             //文章发布
	r.POST("/articleHistory", handlers.ArticleHistory)     //文章的浏览日志
	r.POST("/articleLike", handlers.ArticleLike)           //文章点赞
	r.POST("/addArticleReview", handlers.AddArticleReview) //文章评论
	r.POST("/resArticleReview", handlers.ResArticleReview) //文章回复评论
	r.POST("/reviewLike", handlers.ReviewLike)             //文章评论点赞
	r.GET("/getArticleId", handlers.GetArticleId)
}
